How To Check If String Is Valid Json Using Python